package day20171026;

/**
 * Created by Administrator on 2017-10-26.
 */
public class Test02 {

    public static void main(String[] args) {

        // String 字符串 :保存多个字符

        String hw = "Hello, World!";

//        System.out.println(hw.charAt(0));
//        System.out.println(hw.charAt(8));


        // 逗号分隔：Hello   World!
//        System.out.println(hw.replaceAll("l", "m"));

        String[] ss = hw.split(",");
        System.out.println(ss[0]);
        System.out.println(ss[1]);



    }
}
